package com.neu.his.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.omg.CORBA.IDLType;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class Base {
    @TableId(value = "id" ,type= IdType.AUTO)
    protected Long id;
    protected Date createDate;
    protected Date updateDate;
    protected int removeMark=0;
    public void setCreateDate(){
        this.createDate = new Date();
        removeMark=0;
        this.updateDate = new Date();
    }
    public void setUpdateDate(){
        this.updateDate = new Date();
    }
    public void setUpdateDate(LocalDateTime localDateTime){
        this.updateDate = new Date();
        this.removeMark=0;
    }
    public Date getUpdateDate(){return updateDate;}
}
